<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.system.dict.mains.DictList"/>
<script language="javascript">

    /* 创建Bean */
	function createBean_onclick(grid,page){	
    	var dictmainTable = page.find("dictmainTable");
    	
		var checkDataSet = dictmainTable.getCheckDataSet();
		dictmainTable.dataSet.switchMessage("createBean");
		dictmainTable.refresh();
	}

	//扩展功能点击进入
	function expand_onclick(grid,page){
		
		var dictTyp = page.element.parameter['dict_par_id'];
		
		Yacon.showModal({
			url: "export/dictExpand.jsp?par="+dictTyp,
		    height: "80%",
		    close: "expand_window_close"
		});
	
	}
	
	function expand_window_close(windows,page){
		page.find("dictmainTable").refresh();
	}
	
	//数据更新
	function dataRewBtn_onclick(grid,page){
		
		var tableName = grid.getFieldValue("TABLE_NAM");
		var dictID = grid.getFieldValue("DICT_ID");
		
		var sendSet = new Yacon.data.DataSet(page);
		sendSet.setWhereField("TABLE_NAM_BAK",tableName);
		sendSet.setWhereField("DICT_ID_BAK",dictID);
		
		sendSet.switchMessage("dataRew");
		
		page.find("dictdetailGrid").refresh();
		
	}


</script>
